<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<% request.setAttribute("basePath", request.getContextPath()); %>
<html>
<body>
<h2>Hello World!</h2>

<form action="${basePath}/rest/getUser/1" method="get">
    <input type="submit" value="查询">
</form>
<form action="${basePath}/rest/addUser" method="post">
    ID： <input name="id" type="text">
    姓名： <input name="name" type="text">
    <input type="submit" value="新增">
</form>
<form action="${basePath}/rest/updateUser" method="POST">
    <input type="hidden"  value="PUT" name="_method">
    姓名： <input name="name" type="text">
    ID： <input name="id" type="text">
    <input type="submit" value="查询">
</form>
<form action="${basePath}/rest/deleteUser/1" method="POST">
    <input type="hidden" value="DELETE"  name="_method">
    <input type="submit" value="删除">
</form>
</body>
</html>
